/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evolve.webbot.file;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.PrintWriter;

/**
 *
 * @author DarthAE
 */
public class CommonErrorFile 
{
    public CommonErrorFile(){}
    
    public void writeCommonWebTxtFile(String path,String content)
    {
       PrintWriter pw   = null;
                   
       try{     
                       File file = new File(path);
                                             
                       if(!file.exists())
                       {
                           file.createNewFile();
                       }
                       
                       FileWriter  fw    = new FileWriter(file);  
                       BufferedWriter bw = new BufferedWriter(fw);
                       
                       bw.write(content+"\n");
                       bw.close();
                        
            } catch (Exception e) {e.printStackTrace();}       
    }
}
